.class public abstract Lcom/facebook/f/f;
.super Ljava/lang/Object;
.source "FbInjector.java"

# interfaces
.implements Lcom/facebook/f/h;


# static fields
.field private static a:Ljava/util/concurrent/ConcurrentMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentMap",
            "<",
            "Landroid/content/Context;",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/Class",
            "<+",
            "Lcom/facebook/inject/Module;",
            ">;",
            "Lcom/facebook/f/b;",
            ">;>;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 34
    new-instance v0, Lcom/b/a/b/cw;

    invoke-direct {v0}, Lcom/b/a/b/cw;-><init>()V

    invoke-virtual {v0}, Lcom/b/a/b/cw;->f()Lcom/b/a/b/cw;

    move-result-object v0

    invoke-virtual {v0}, Lcom/b/a/b/cw;->h()Lcom/b/a/b/cw;

    move-result-object v0

    invoke-virtual {v0}, Lcom/b/a/b/cw;->m()Ljava/util/concurrent/ConcurrentMap;

    move-result-object v0

    sput-object v0, Lcom/facebook/f/f;->a:Ljava/util/concurrent/ConcurrentMap;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 31
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/facebook/f/f;
    .locals 1
    .parameter

    .prologue
    .line 48
    const-class v0, Lcom/facebook/f/k;

    invoke-static {p0, v0}, Lcom/facebook/f/f;->a(Landroid/content/Context;Ljava/lang/Class;)Lcom/facebook/f/f;

    move-result-object v0

    return-object v0
.end method

.method public static a(Landroid/content/Context;Ljava/lang/Class;)Lcom/facebook/f/f;
    .locals 5
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/Class",
            "<+",
            "Lcom/facebook/inject/Module;",
            ">;)",
            "Lcom/facebook/f/f;"
        }
    .end annotation

    .prologue
    .line 59
    const/4 v1, 0x0

    .line 61
    sget-object v0, Lcom/facebook/f/f;->a:Ljava/util/concurrent/ConcurrentMap;

    invoke-interface {v0, p0}, Ljava/util/concurrent/ConcurrentMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map;

    .line 62
    if-nez v0, :cond_0

    .line 63
    invoke-static {}, Lcom/b/a/b/dh;->c()Ljava/util/concurrent/ConcurrentMap;

    move-result-object v0

    .line 64
    sget-object v2, Lcom/facebook/f/f;->a:Ljava/util/concurrent/ConcurrentMap;

    invoke-interface {v2, p0, v0}, Ljava/util/concurrent/ConcurrentMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object v2, v0

    move-object v0, v1

    .line 69
    :goto_0
    if-nez v0, :cond_2

    .line 70
    invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lcom/facebook/f/g;

    .line 71
    invoke-interface {v0}, Lcom/facebook/f/g;->a()Lcom/facebook/f/f;

    move-result-object v0

    .line 72
    if-nez v0, :cond_1

    .line 73
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Can NOT get FbInjector instance! Possible reasons: (1) This method was called in ContentProvider\'s onCreate. (2) This is a test, and you forgot to initialize the MockInjector. For example, using RobolectricTestUtil.initializeMockInjector()."

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 66
    :cond_0
    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/f/b;

    move-object v2, v0

    move-object v0, v1

    goto :goto_0

    .line 79
    :cond_1
    new-instance v1, Lcom/facebook/f/b;

    invoke-virtual {v0, p1}, Lcom/facebook/f/f;->c(Ljava/lang/Class;)Lcom/facebook/f/f;

    move-result-object v3

    const-class v4, Lcom/facebook/f/d;

    invoke-virtual {v0, v4}, Lcom/facebook/f/f;->a(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/f/d;

    invoke-direct {v1, v3, v0, p0}, Lcom/facebook/f/b;-><init>(Lcom/facebook/f/f;Lcom/facebook/f/d;Landroid/content/Context;)V

    .line 84
    invoke-interface {v2, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object v0, v1

    .line 86
    :cond_2
    return-object v0
.end method
